import base from '@/api/baseurl';
import request from '@/utils/request'

/**
 * 列表查询
 * @param {*} query
 * @returns
 */
export function findlimiting(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/findlimiting',
    method: 'get',
    params: query
  })
}


/**
 * 新增
 * @param {*} data
 * @returns
 */
export function addlimiting(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/addlimiting',
    method: 'post',
    data
  })
}
/**
 * 修改
 * @param {*} data
 * @returns
 */
 export function updatelimiting(data) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/updatelimiting',
    method: 'post',
    data
  })
}

/**
 *  删除
 * @param {*} query
 * @returns
 */
 export function dellimiting(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/dellimiting',
    method: 'get',
    params: query
  })
}


/**
 * 新增查询编号
 * @param {*} query
 * @returns
 */
 export function autoCodeS(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/autoCodeS',
    method: 'get',
    params: query
  })
}
// 判断优先级是否存在
export function judgepriority(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/judgepriority',
    method: 'get',
    params: query
  })
}







// 提交调用的方法
/**
 * 运算符下拉框
 * @param {*} query
 * @returns
 */
 export function findoperatorlimiting(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/findoperatorlimiting',
    method: 'get',
    params: query
  })
}
/**
 * 限制条件下拉框
 * @param {*} query
 * @returns
 */
 export function findrestrictionsType(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/findrestrictions_type',
    method: 'get',
    params: query
  })
}
/**
 * 附加兜底条件下拉框
 * @param {*} query
 * @returns
 */
 export function findconditions(query) {
  return request({
    baseURL: base.appBaseApi,
    url: '/CurveOverlay/findconditions',
    method: 'get',
    params: query
  })
}